home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990422-19990725 / 000129_news@watsun.cc.columbia.edu _Mon Jun 7 15:54:49 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Return-Path: <news@watsun.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id PAA06554
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 7 Jun 1999 15:54:49 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id PAA19048
  7.     for kermit.misc@watsun.cc.columbia.edu; Mon, 7 Jun 1999 15:47:48 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Re: moving from serial to tcp/ip (reduex)
  11. Date: 7 Jun 1999 19:47:48 GMT
  12. Organization: Columbia University
  13. Message-ID: <7jh7l4$ij5$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@watsun.cc.columbia.edu
  15.  
  16. In article <7jh1h3$ttu$1@nnrp1.deja.com>,  <leofa@my-deja.com> wrote:
  17. : In article <7j9gak$rfg$1@newsmaster.cc.columbia.edu>,
  18. :   fdc@watsun.cc.columbia.edu (Frank da Cruz) wrote:
  19. : > In article <7j9c18$mna$1@nnrp1.deja.com>,  <leofa@my-deja.com> wrote:
  20. : > : yes. ok.  thanks.  telnet works fine.
  21. : > : but i still can not get my two line script on the nt box to run. the
  22. : > : first line is "set file download c:\k95\xfer" and the second is "remote
  23. : > : dir /usr/drs/xfer > file.lst".  it is the remote dir line that doesnt
  24. : > : work.  if i try it by hand, it just sits there till i press e a lot or
  25. : > : ctrl-c. (i would then conditionally set off additional .ksc scripts to
  26. : > : remote file gets).  could you please help with any further advice!
  27. : >
  28. : > At the time these commands are executed:
  29. : >
  30. : >  1. You must have established the connection to the Unix system;
  31. : >  2. You must have logged in to Unix;
  32. : >  3. You must have started C-Kermit on UNIX and put it in server mode.
  33. :
  34. : i appologize for being obtuse but 1. what else do i have to to to
  35. : establish a connection to the unix system besides issue a "set net type
  36. : tcp/ip" and "set host 172.16.1.40" commands?  kermit says something
  37. : about connecte OK.
  38. So you have a connection.
  39.  
  40. : 2. logging into unix -- which way do i use to do this?  sense i just
  41. : want to do the "remote" commands to the unix kermit server, can i just
  42. : "remote login"?  this doesnt seem to work.
  43. You haven't logged in to UNIX yet.  REMOTE LOGIN is for "logging in" to a
  44. Kermit server.  But the thing on the far end is not a Kermit server, it is
  45. (presumably) the UNIX login prompt.
  46.  
  47. : 3.  the unix box is an old (circa 1993) sco unix pc.  i have one task
  48. : running kermit in server mode all the time.  its been working in server
  49. : mode for a 1/2 years (hooked to the serial cable which was hooked to
  50. : the k95 nt box).  obviously, the server has been listening on the
  51. : serial "link".  do i need to tell it something to listen on the
  52. : "tcp/ip" link?
  53. There are numerous ways to do this:
  54.  
  55.  1. Invoke "kermit -x" in the login profile (.profile, .login, .bashrc,
  56.     whatever) of the user who is logging in; or:
  57.  
  58.  2. Make "kermit -x" the user's login shell; or:
  59.  
  60.  3. Start Kermit on UNIX and tell it to "set host * xxxx" (where xxxx is
  61.     the TCP port of your choice), to await an incoming TCP connection on
  62.     port xxxx.
  63.  
  64.  4. The best method, and the one that works the way you want and expect,
  65.     is the new Internet Kermit Service Daemon (IKSD):
  66.  
  67.       http://www.columbia.edu/kermit/ck70.html
  68.  
  69.     but this might not work on your old SCO operating system (you didn't
  70.     say what it was).
  71.  
  72. Or you can forget all the above and adapt the scripts that are in the book
  73. for connecting and logging in to UNIX.  Something like:
  74.  
  75.   set network type tcp/ip
  76.   set host 172.16.1.40
  77.   if fail (do something)
  78.   input 10 login:
  79.   if fail (do something)
  80.   output (userid)\13
  81.   input 10 Password:
  82.   if fail (do something)
  83.   output (password)\13
  84.   input 30 (UNIX prompt)
  85.   if fail (do something) 
  86.   output kermit -x\13
  87.  
  88. - Frank